FROM python:3.9

RUN mkdir /backend
WORKDIR /backend

ADD . /backend
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
ADD requirements.txt /code/

CMD python manage.py test && python manage.py runserver 0.0.0.0:8080
